Freescale Semiconductor /MKL25Z4 /SPI1 /C1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as C1

743000000000000 (0)LSBFE0 (0)SSOE0 (0)CPHA0 (0)CPOL0 (0)MSTR0 (0)SPTIE0 (0)SPE0 (0)SPIE

SSOE=0, LSBFE=0, SPIE=0, CPOL=0, SPE=0, MSTR=0, SPTIE=0, CPHA=0

Description

SPI control register 1

Fields

LSBFE

LSB first (shifter direction)

0 (0): SPI serial data transfers start with most significant bit

1 (1): SPI serial data transfers start with least significant bit

SSOE

Slave select output enable

0 (0): When MODFEN is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When MODFEN is 1: In master mode, SS pin function is SS input for mode fault. In slave mode, SS pin function is slave select input.

1 (1): When MODFEN is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When MODFEN is 1: In master mode, SS pin function is automatic SS output. In slave mode: SS pin function is slave select input.

CPHA

Clock phase

0 (0): First edge on SPSCK occurs at the middle of the first cycle of a data transfer

1 (1): First edge on SPSCK occurs at the start of the first cycle of a data transfer

CPOL

Clock polarity

0 (0): Active-high SPI clock (idles low)

1 (1): Active-low SPI clock (idles high)

MSTR

Master/slave mode select

0 (0): SPI module configured as a slave SPI device

1 (1): SPI module configured as a master SPI device

SPTIE

SPI transmit interrupt enable

0 (0): Interrupts from SPTEF inhibited (use polling)

1 (1): When SPTEF is 1, hardware interrupt requested

SPE

SPI system enable

0 (0): SPI system inactive

1 (1): SPI system enabled

SPIE

SPI interrupt enable: for SPRF and MODF

0 (0): Interrupts from SPRF and MODF are inhibited-use polling

1 (1): Request a hardware interrupt when SPRF or MODF is 1

Links

() ()